<?php
namespace app\index\controller;

//load_trait('brximl/brx');
//  首页号航
//use think\Controller;-
use think\Request;
use think\Session;
use think\Loader;
use think\Db;
class Error extends \think\Controller
{
    use \traits\brximl\brx;
    /*****************************************************首页************************************************************************/
    // 没有登入时！
    public function index()
    {
        // 禁止正常的时候访问该页面
        $isLogin  = $this->rightInfo(null,true);
        if($isLogin) $this->redirect('index/index/index');

        $this->brxStart();
        $this->useFrontFk();
        $this->loadScript([
            'title'=>'TeCener-您还未登录系统','js'=>['TeC','Error/index']//,'css'=>['project/index']
        ]);
        $page = [
            'doeeking'  => $this->dyUrl('Doeeking'),
            'title'     => date('Y-m-d H:i:s'),
            'login'     => $this->dyUrl('Doeeking','/index.php/Home/Index/enter.html?src='.request()->url(true)),
            'register'  => $this->dyUrl('Doeeking','/index.php/Home/Index/login.html')
        ];
        $this->assign('page',$page);
        return $this->fetch('unlogined');
    }
}